import requests


class get_proxy(object):
    def __init__(self,url):
        self.url = url


    def get_proxy_data(self):
        PROXY_POOL_URL = self.url
        try:
            response = requests.get(PROXY_POOL_URL)
            if response.status_code == 200:
                return response.text
        except ConnectionError:
            return None
